package com.hbnu.reflect;

/**
 * @author kittychen
 * @since 2025-10-14 17:15
 */
public class Person {

    private String name;
    private int age;
    public String address;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    private Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void method1() {
        System.out.println("公共无返回值无参方法");
    }

    private String method2(String name) {
        System.out.println("私有有返回值无参方法" + name);
        return "hello";
    }
}
